package com.liuxingyu.login.service;

import com.liuxingyu.login.dao.UserMapper;
import com.liuxingyu.login.data.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements IUserService {
	
	@Autowired
	private UserMapper userMapper;

	/**
	 * 根据userName获取用户信息
	 * 
	 * @param userName
	 */
	@Override
	public User getByUserName(String userName) {
		return userMapper.getByUserName(userName);
	}
}
